<!DOCTYPE html>
<html>
<head>
<title>用户注册-速订客</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta name="keyword" content="">
<meta name="description" content="">
<link rel="stylesheet" rev="stylesheet" href="<?=STATIC_URL;?>css/base.css" type="text/css">
<link rel="stylesheet" rev="stylesheet" href="<?=STATIC_URL;?>css/reglogin.css" type="text/css">
<link rel="icon" type="image/x-icon" href="<?=STATIC_URL;?>favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="<?=STATIC_URL;?>favicon.ico">
</head>
<body>
<?php include dirname(__FILE__).'/../com-header-sample.tpl.php'; ?>
<!------------------------------------>

<div id="container">
<form id="submitForm" action="/save" method="post" name="submitForm" target="formSubmit">
  <div class="cb win1000">
    <div class="renzheng">
      <div class="reg-success">
        <h2><span class="icon"></span><?=h($user_name);?>，恭喜您注册成功并且已登录网站！</h2>
<? /*
        <table>
          <tbody>
            <tr>
              <th>&nbsp;</th>
              <td>信用值：</td>
              <td style="padding:5px 0;"><strong>10</strong>&nbsp;&nbsp;<span class="fgrey">(信用值越高，每天可发布的信息数量越多)</span></td>
            </tr>
            <tr>
              <th>&nbsp;</th>
              <td>邮&nbsp;&nbsp;&nbsp;箱：</td>
              <td style="padding:5px 0;"><strong><?=h($email_name);?></strong>&nbsp;<span class="fgrey">(此邮箱可用于登录)</span></td>
            </tr>
            <tr>
              <th>&nbsp;</th>
              <td>&nbsp;</td>
              <td style="padding:5px 0;">&nbsp;</td>
            </tr>
            <tr>
              <th>&nbsp;</th>
              <td colspan="2"><p><a href="http://mail.163.com">马上免费认证邮箱»</a> 可获得<strong>50</strong>个信用 <span class="fgrey">(认证邮件已发送至您的邮箱，点击认证链接即可完成)</span></p>
                <p><a href="http://my.58.com/authmobile/">马上免费认证手机»</a> 可获得<strong>100</strong>个信用 <span class="fgrey">(认证的手机号码可用于登录、找回密码)</span></p></td>
            </tr>
          </tbody>
        </table>
*/ ?>
      </div>
    </div>
  </div>
</form>
<div class="clear"></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>

<?php include dirname(dirname(__FILE__)).'/com-footer.tpl.php';?>
<script type="text/javascript" src="<?=STATIC_URL;?>js/jquery-1.7.1.min.js"></script>
<script src="<?=STATIC_URL;?>js/validator/formValidator-4.1.1.js" type="text/javascript" charset="UTF-8"></script>
<script src="<?=STATIC_URL;?>js/validator/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
var onShowHtml = "";
var onFocusHtml = "<span class='$class$'><span class='action_po_top'>$data$</span><span class='action_po_bot'></span></span>";
var onErrorHtml = "<span class='$class$'><span class='action_po_top'>$data$</span><span class='action_po_bot'></span></span>";
var onCorrectHtml = "<span class='$class$'></span>";
var onShowClass = "inp";
var onFocusClass = "inp inp_focus";
var onErrorClass = "inp inp_error";
var onCorrectClass = "inp inp_correct";

$(document).ready(function(){
$.formValidator.initConfig({formID:"submitForm",mode:'FixTip',onError:function(msg){alert(msg)},inIframe:true,ajaxPrompt:""});
    $("#username").formValidator({onShow:"请输入用户名",onFocus:"6-20位，可由汉字、数字、字母和“_”组成，注册成功后用户名不可修改",onCorrect:"该用户名可以注册"}).inputValidator({min:6,max:20,onError:"请输入6-20位字符，或汉字"}).regexValidator({regExp:"username",dataType:"enum",onError:"用户名格式不正确"})
                  .ajaxValidator({type: "POST", dataType : "html",async : true,url : "/login/checkfield",
                                  success : function(data){if(data == 'OK'){return true;}else{return data;}},
                                  buttons: $("#button"),
                                  error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试"+errorThrown);},
                                  onError : "该用户名不可用，请更换用户名",
                                  onWait : "正在对用户名进行合法性校验，请稍候……"
                                });
    $("#txtemail").formValidator({onShow:"请输入邮箱",onFocus:"邮箱至少6个字符,最多100个字符",onCorrect:"恭喜你,你输对了",defaultValue:"@"}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onError:"你输入的邮箱格式不正确"})
                  .ajaxValidator({type: "POST", dataType : "html",async : true,url : "/login/checkfield",
                                  success : function(data){if(data == 'OK'){return true;}else{return data;}},
                                  buttons: $("#button"),
                                  error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试"+errorThrown);},
                                  onError : "该邮箱地址不可用，请更换",
                                  onWait : "正在对邮箱地址进行合法性校验，请稍候……"
                                });
    $("#password").formValidator({onShow:"请输入密码",onFocus:"密码不能为空",onCorrect:"密码合法"}).inputValidator({min:1,onError:"密码不能为空,请确认"});
    $("#password2").formValidator({onShow:"请输入重复密码",onFocus:"两次密码必须一致哦",onCorrect:"密码一致"}).inputValidator({min:1,onError:"重复密码不能为空,请确认"}).compareValidator({desID:"password",operateor:"=",onError:"2次密码不一致，请确认"});
    $("#mobile").formValidator({empty:true,onShow:"请输入你的手机号码，可以为空哦",onFocus:"你要是输入了，必须输入正确",onCorrect:"谢谢你的合作",onEmpty:"你真的不想留手机号码啊？"}).inputValidator({min:11,max:11,onError:"手机号码必须是11位的,请确认"}).regexValidator({regExp:"mobile",dataType:"enum",onError:"你输入的手机号码格式不正确"});;
    $.formValidator.reloadAutoTip();
    $("#syxy").click(function(){
        $("#agree").toggle();
    });
});
</script>
</body>
</html>